//列出 star 了仓库的用户 此api用于检测用户是否star 对应仓库如果star 则发放api token
import request from "../request";
import type { ApiResponse } from "../request";
import { BelovedAccessToken } from "./authorToken";

export const getStarredUsers = async (
  owner: string,
  repo: string
): Promise<ApiResponse> => {
  return request.get(
    `https://gitee.com/api/v5/repos/${owner}/${repo}/stargazers`,
    {
      params: {
        access_token: BelovedAccessToken,
      },
    }
  );
};
